package com.service.bean.garbage;

import java.text.MessageFormat;

import com.service.bean.device.Vehicle;
import com.service.bean.signal.GpsSignal;

/**
 * 查询小区数据接口
 * @author lj
 *
 */
public class GetCommntInfo extends GarbageSend {

	public GetCommntInfo() {}
	
	public GetCommntInfo(Vehicle vehicle, GpsSignal signal) {
		this.vehicle = vehicle;
		this.signal = signal;
	}
	
	/**
	 * 用于给拼接Json字符串
	 * @return
	 */
	private Object[] getParamsForJson() {
		Object[] arrs = new Object[1];
		arrs[0] = "\"" + mskey + "\""; // msKey 秘钥
		return arrs;
	}
	
	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("\"MSKey\":{0}");
		return MessageFormat.format(buffer.toString(), getParamsForJson());
	}
	
}
